package com.nmsl.registration.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 病历信息对象 medical_record
 * 
 * @author skx
 * @date 2025-02-24
 */
@Data
public class skxMedicalRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 病历id */
    @Excel(name = "病历id")
    private Long medicalRecordId;

    /** 患者id（患者表） */
    @Excel(name = "患者id", readConverterExp = "患=者表")
    private Long patientId;

    /** 现病史 */
    @Excel(name = "现病史")
    private String currentMedicalHistory;

    /** 既往史 */
    @Excel(name = "既往史")
    private String pastMedicalHistory;

    /** 个人史 */
    @Excel(name = "个人史")
    private String personalHistory;

    /** 家族史 */
    @Excel(name = "家族史")
    private String familyHistory;

    /** 就诊记录id（就诊记录表）（无效） */
    @Excel(name = "就诊记录id", readConverterExp = "就=诊记录表")
    private Long visitRecordId;

    private skxVisitRecord visitRecord;

    public void setMedicalRecordId(Long medicalRecordId) 
    {
        this.medicalRecordId = medicalRecordId;
    }

    public Long getMedicalRecordId() 
    {
        return medicalRecordId;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setCurrentMedicalHistory(String currentMedicalHistory) 
    {
        this.currentMedicalHistory = currentMedicalHistory;
    }

    public String getCurrentMedicalHistory() 
    {
        return currentMedicalHistory;
    }
    public void setPastMedicalHistory(String pastMedicalHistory) 
    {
        this.pastMedicalHistory = pastMedicalHistory;
    }

    public String getPastMedicalHistory() 
    {
        return pastMedicalHistory;
    }
    public void setPersonalHistory(String personalHistory) 
    {
        this.personalHistory = personalHistory;
    }

    public String getPersonalHistory() 
    {
        return personalHistory;
    }
    public void setFamilyHistory(String familyHistory) 
    {
        this.familyHistory = familyHistory;
    }

    public String getFamilyHistory() 
    {
        return familyHistory;
    }
    public void setVisitRecordId(Long visitRecordId) 
    {
        this.visitRecordId = visitRecordId;
    }

    public Long getVisitRecordId() 
    {
        return visitRecordId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medicalRecordId", getMedicalRecordId())
            .append("patientId", getPatientId())
            .append("currentMedicalHistory", getCurrentMedicalHistory())
            .append("pastMedicalHistory", getPastMedicalHistory())
            .append("personalHistory", getPersonalHistory())
            .append("familyHistory", getFamilyHistory())
            .append("visitRecordId", getVisitRecordId())
            .toString();
    }
}
